package com.kx.service_exam.service.interfaces;

import com.kx.service_exam.model.QuestionChoice;
import com.kx.service_exam.vo.query.QuestionChoiceQueryVO;

import java.text.ParseException;
import java.util.List;

public interface IQuestionChoiceSV {

    int insertQuestionChoice(QuestionChoice questionChoice);

    int batchInsertQuestionChoice(List<QuestionChoice> questionChoices,String questionId, String operatorId);

    int batchDeleteQuestionChoice(String[] ids);

    int logicalDeleteQuestionChoice(QuestionChoice questionChoice);

    int logicalDeleteQuestionChoiceByQuestionId(String questionId);

    int deleteQuestionChoice(String id);

    int deleteQuestionChoiceByQuestionId(String questionId);

    int updateQuestionChoice(QuestionChoice questionChoice);

    QuestionChoice selectQuestionChoiceById(String id);

    long countQuestionChoiceByFilter(QuestionChoiceQueryVO filter) throws ParseException;

    long countQuestionChoiceByQuestionId(String questionId) throws ParseException;

    List<QuestionChoice> listQuestionChoiceByFilter(QuestionChoiceQueryVO filter) throws ParseException;

    List<QuestionChoice> listQuestionChoiceByQuestionId(String questionId) throws ParseException;

    List<QuestionChoice> listAnswerByQuestionId(String questionId) throws ParseException;
}
